package kz.simplex.photobox.action;

import kz.simplex.photobox.model.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("friendshipList")
public class FriendshipList extends EntityQuery<Friendship> {

	private static final String EJBQL = "select friendship from Friendship friendship";

	private static final String[] RESTRICTIONS = {};

	private Friendship friendship;

	public FriendshipList() {
		friendship = new Friendship();
		friendship.setId(new FriendshipPK());
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public Friendship getFriendship() {
		return friendship;
	}
}
